package com.adam.springmvc.dao;

import com.adam.springmvc.domain.Student;
import org.apache.ibatis.annotations.Select;

public interface StudentDAO {

    @Select({"<script>",
            "SELECT stud_id as studId, name, email, dob",
            "FROM students",
            "<where>",
            "stud_id=#{id}",
            "</where>",
            "</script>"
    })
    Student findStudentById(int id);

}
